﻿using System;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020000B5 RID: 181
	public class PickUpSphere : PickUp2Handed
	{
		// Token: 0x060005AE RID: 1454 RVA: 0x00036B6C File Offset: 0x00034D6C
		public override void RotatePivot()
		{
			Vector3 b = Vector3.Lerp(this.interactionSystem.ik.solver.leftHandEffector.bone.position, this.interactionSystem.ik.solver.rightHandEffector.bone.position, 0.5f);
			Vector3 forward = this.obj.transform.position - b;
			this.pivot.rotation = Quaternion.LookRotation(forward);
		}
	}
}
